/*
 +----------------------------------------------------------------------
 + Title        : doctor
 + Author       : huwl
 + Version      : 1.0.0
 + Initial-Time : 2023-08-10
 + Last-time    : 这个文件最后修改的时间 + 修改人的名称
 + Desc         : 医生接口
 +----------------------------------------------------------------------
*/

import type { DoctorListParams, DoctorListResult } from '@/types/doctor'
import {http} from '@/utils/httpRequest'

/**
 * 医生列表,请求方式[get]
 * 
 * @param DoctorListParams data --------------------------------请求参数
 * @returns Promise<DoctorListResult>
 * @author huwl
 */
export const reqGetDoctorListAPI = (data?: DoctorListParams) => {
    return http<DoctorListResult>({
        method: 'GET',
        url: 'doctor/list',
        data
    })
}